<%--
  Created by IntelliJ IDEA.
  User: empty
  Date: 2025/5/22
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>公告管理</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 15px 0;
            border-bottom: 1px solid #dee2e6;
        }

        .header h1 {
            color: #343a40;
            font-size: 28px;
        }

        #logout button {
            background-color: #6c757d;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
            font-size: 14px;
        }

        #logout button:hover {
            background-color: #5a6268;
        }

        #app {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            padding: 30px;
            width: 100%;
            max-width: 600px;
            margin: 30px auto;
            transition: transform 0.3s ease;
        }

        #app:hover {
            transform: translateY(-2px);
        }

        #app h2 {
            color: #343a40;
            font-size: 24px;
            margin-bottom: 25px;
            border-left: 4px solid #4a89dc;
            padding-left: 10px;
        }

        .action-buttons {
            display: grid;
            grid-gap: 15px;
        }

        .action-buttons form button {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
        }

        .action-buttons form button i {
            margin-right: 10px;
        }

        .action-buttons form:nth-child(1) button {
            background-color: #4a89dc;
            color: white;
        }

        .action-buttons form:nth-child(1) button:hover {
            background-color: #3a7bd5;
        }

        .action-buttons form:nth-child(2) button {
            background-color: #e67e22;
            color: white;
        }

        .action-buttons form:nth-child(2) button:hover {
            background-color: #d35400;
        }

        .action-buttons form:nth-child(3) button {
            background-color: #2ecc71;
            color: white;
        }

        .action-buttons form:nth-child(3) button:hover {
            background-color: #27ae60;
        }

        .action-buttons form button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .action-buttons form button:active {
            transform: translateY(0);
        }
    </style>
</head>
<body>
<div class="header">
    <h1>社区公告管理系统</h1>
    <div id="logout">
        <form action="user-community" name="action" method="post">
            <input type="hidden" name="action" value="returnUser">
            <button type="submit">返回管理员首页</button>
        </form>
    </div>
</div>

<div id="app">
    <h2>公告管理</h2>
    <div class="action-buttons">
        <form action="announcement" method="post">
            <input type="hidden" name="action" value="addAnnouncement">
            <button type="submit"><i>📢</i> 发布公告</button>
        </form>
        <form action="announcement" method="post">
            <input type="hidden" name="action" value="deleteAnnouncement">
            <button type="submit"><i>🗑️</i> 删除公告</button>
        </form>
        <form action="findAllAnnouncement" method="post">
            <input type="hidden" name="action" value="findAllAnnouncement">
            <button type="submit"><i>👁️</i> 浏览公告</button>
        </form>
    </div>
</div>
</body>
</html>

